package fwk.siteManager.BO {	
	import fwk.loaderManager.LoaderItemObject;

	
	public class RessourceData
	{
		
		public var id:String;
		public var url:String;
		public var type:String;
		public var path:String;
		
		public var display:Boolean = false;
		public var center:Boolean = false;
		public var cache:Boolean = false;
		public var context:Boolean = true;
		public var securityDomain:Boolean = false;
		
		public var x:int = 0;
		public var y:int = 0;
		
		public var xmlDescription:XML;
		
		
		public function RessourceData()
		{
			
			
		}
		
		public function init(xml:XML):void
		{
			id 		= xml.@id;
			url 	= xml.@url;
			type 	= xml.name();
			path 	= xml.@path;
			
			if(String(xml.@display[0]) == "true") display = true;
			if (String(xml.@center[0]) == "true") center = true;
			if (String(xml.@cache[0]) == "true") cache = true;
			if (String(xml.@context[0]) == "false") context = false;
			if (String(xml.@securityDomain[0]) == "true") securityDomain = true;
			
			if(xml.@x[0] is XML) x = parseInt(xml.@x);
			if(xml.@y[0] is XML) y = parseInt(xml.@y);
			
			xmlDescription = xml;
			
			
		}
				
	}
	
	
}